// ADODatabase.h: interface for the CADODatabase class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ADODATABASE_H__DAB9B4B1_A3FB_11D5_A074_0050BABCDD5F__INCLUDED_)
#define AFX_ADODATABASE_H__DAB9B4B1_A3FB_11D5_A074_0050BABCDD5F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CADORecordset;
class AFX_EXT_CLASS CADODatabase  
{
public:
	CADORecordset* Query(CString sQuery);
	_ConnectionPtr GetConnection();
	CADODatabase();
	virtual ~CADODatabase();
	void RollbackTrans();
	void CommitTrans();
	void BeginTrans();
	BOOL IsOpen();
	void Close();
	BOOL Open(CString pszProvider, CString pszUserName = _T(""), CString pszPassword = _T(""));

private:
	_ConnectionPtr m_pConnection;
};

#endif // !defined(AFX_ADODATABASE_H__DAB9B4B1_A3FB_11D5_A074_0050BABCDD5F__INCLUDED_)
